﻿<local:DocumentBase x:Class="WPFExcelReport.JLTCAD2ITX"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core"
                    xmlns:db="clr-namespace:INTEX.DataBase"
                    xmlns:scm="clr-namespace:System.ComponentModel;assembly=WindowsBase" 
                    xmlns:dat="clr-namespace:System.Windows.Data;assembly=PresentationFramework"
                    xmlns:fd="clr-namespace:Labs.Filtering;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"
                    Loaded="Window_Loaded" 
                    FontSize="16" 
                    Background="White" 
                    Title="CAD工艺导入" 
                    HorizontalAlignment="Stretch"
                    Margin="0,0,0,0" 
                    Width="1024"
                    Height="600"
                    VerticalAlignment="Stretch"
                    >
    <local:DocumentBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:String2ColorConverter  x:Key="str2color"/>
        <db:SETINTEXDB  x:Key="Set4ITX" />
        <db:SETINTEXDB  x:Key="SetData" />
        <CollectionViewSource  x:Key="vwTechMaster" Source="{Binding Path=TechMaster,Source={StaticResource Set4ITX}}"/>
        <CollectionViewSource  x:Key="vwTechDetail" Source="{Binding Path=TechDetail,Source={StaticResource Set4ITX}}"/>
        <CollectionViewSource  x:Key="vwLogInfo" Source="{Binding Path=LOGINFO,Source={StaticResource SetData}}"/>
    </local:DocumentBase.Resources>
    <StackPanel    >
        <Expander Name="expLog" ExpandDirection="Left" IsExpanded="True">
            <WrapPanel Name="zoneCommand" Height="34" Margin="0,0,0,6">
                <Label   Content="系统" Width="40" Margin="0" HorizontalAlignment="Left" FontSize="18" VerticalAlignment="Center" />
                <TextBox   Name="txtMANDANT" MaxLength="2" Width="40" Margin="10,0,0,0" Text="00" HorizontalAlignment="Left" Background="Pink" FontSize="18" />
                <Label  Content="语言" Width="40" Margin="0,0,0,0" HorizontalAlignment="Left" FontSize="18" VerticalAlignment="Center" />
                <TextBox   IsReadOnly="True" Name="txtSPRACHKZ" Width="40" Margin="0,0,0,0" Text="" MaxLength="1" HorizontalAlignment="Left" Background="Pink" FontSize="18" />
                <Label  Content="用户名" Width="60" Margin="10,0,0,0" HorizontalAlignment="Left" FontSize="18" VerticalAlignment="Center" />
                <TextBox  Name="txtUserID" Width="80" Margin="10,0,0,0" Text="" HorizontalAlignment="Left" Background="Yellow" FontSize="18" MaxLength="8" AcceptsTab="True" CharacterCasing="Upper" KeyboardNavigation.TabIndex="0" />
                <Label Content="密码" Width="40" Margin="10,0,0,0" HorizontalAlignment="Left" FontSize="18" VerticalAlignment="Center" />
                <PasswordBox  Name="txtPassword" Width="80" Margin="10,0,0,0" HorizontalAlignment="Left" Background="Yellow" FontSize="18" KeyboardNavigation.TabIndex="1" />
                <Button  Height="Auto" Margin="10,0,0,0" Name="btnLogIn" Width="34" Click="btnLogIn_Click" KeyboardNavigation.TabIndex="2" IsDefault="True">
                    <Button.Background>
                        <ImageBrush  ImageSource="Images/User.png" />
                    </Button.Background>
                </Button>
                <TextBlock  Name="txtLogIn" Width="Auto" Margin="10,0,0,0" HorizontalAlignment="Left" Background="White" FontSize="14" KeyboardNavigation.TabIndex="1" />
            </WrapPanel>
        </Expander>
        <StackPanel>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition   Height="Auto" MaxHeight="100"/>
                    <RowDefinition   Height="Auto" MaxHeight="600"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition  Width="1*" />
                    <ColumnDefinition  Width="1*" />
                    <ColumnDefinition Width="1*" />
                    <ColumnDefinition Width="1*" />
                    <ColumnDefinition Width="1*" />
                    <ColumnDefinition Width="1*" />
                </Grid.ColumnDefinitions>
                <WrapPanel Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="6">
                    <Button Name="btnLogInfor" Click="btnLogInfor_Click" Height="40" Width="40">
                        <Button.Background>
                            <ImageBrush  ImageSource="Images/Search.png" />
                        </Button.Background>
                    </Button>
                    <WrapPanel>
                        <Button Name="btnAutoRun" Click="btnAutoRun_Click" Height="40" Width="40" >
                            <Button.Background>
                                <ImageBrush  ImageSource="Images/Reload.png" />
                            </Button.Background>
                        </Button>
                        <TextBlock>自动</TextBlock>
                    </WrapPanel>
                    <TextBox Name="IsRun"  Width="30">Y</TextBox>
                    <WrapPanel>
                        <Button Name="btnStopRun" Click="btnStopRun_Click" Height="40" Width="40" >
                            <Button.Background>
                                <ImageBrush  ImageSource="Images/Delete.png" />
                            </Button.Background>
                        </Button>
                        <TextBlock>停止</TextBlock>
                    </WrapPanel>
                    <TextBox Name="txtFInterID" Width="90"></TextBox>
                    <Label   Content="小花号:" Width="Auto" Margin="0" HorizontalAlignment="Left" FontSize="18" VerticalAlignment="Center" />
                    <TextBox  Name="txtCADART" 
                                                                  MaxLength="20" Width="150" Margin="10,0,0,0"  HorizontalAlignment="Left" Background="Pink" FontSize="18" AcceptsTab="True" CharacterCasing="Upper" 
                                                                  />
                </WrapPanel>
                <DataGrid Grid.Row="1"  Grid.Column="0" Grid.ColumnSpan="3"  
                       ItemsSource="{Binding Source={StaticResource ResourceKey=vwLogInfo}}"  
                       AutoGenerateColumns="False" EnableRowVirtualization="True"
                       VerticalScrollBarVisibility="Auto"
                       HorizontalScrollBarVisibility="Auto"
                        MaxHeight="300"
                       VerticalAlignment="Stretch"
                       HeadersVisibility="Column" 
                       FontSize="12"
                       HorizontalAlignment="Stretch"
                        EnableColumnVirtualization="True">
                    <DataGrid.Columns>
                        <DataGridTextColumn Binding="{Binding Path=FCLOTHNO}" Header="FClothNO" Width="Auto" MinWidth="100" />
                        <DataGridTextColumn Binding="{Binding Path=FCOLORNO}" Header="FColorNO" Width="Auto" MinWidth="40" />
                        <DataGridTextColumn Binding="{Binding Path=FDESIGNNAME}" Header="FDesignName" Width="Auto" MinWidth="40" />
                        <DataGridTextColumn Binding="{Binding Path=FEDITDATE}" Header="FEditDate" Width="Auto" MinWidth="80" />
                    </DataGrid.Columns>
                </DataGrid>
                <StackPanel Grid.Row="1"  Grid.Column="3" Grid.ColumnSpan="3">
                    <DataGrid  x:Name="dlgCADTechMaster"
                           ItemsSource="{Binding Source={StaticResource ResourceKey=vwTechMaster}}"  
                           AutoGenerateColumns="False" EnableRowVirtualization="True"
                           VerticalScrollBarVisibility="Auto"
                           HorizontalScrollBarVisibility="Auto"
                           HeadersVisibility="Column" 
                           FontSize="12"
                           MaxHeight="300"
                           Width="Auto" 
                           Height="Auto"
                           EnableColumnVirtualization="True">
                        <DataGrid.Columns>
                            <DataGridTextColumn Binding="{Binding Path=FClothNO}" Header="品种" Width="Auto" MinWidth="80" />
                            <DataGridTextColumn Binding="{Binding Path=FAssortment}" Header="描述" Width="Auto" MinWidth="100" />
                            <DataGridTextColumn Binding="{Binding Path=FDesignDate}" Header="设计时间" Width="Auto" MinWidth="80" />
                        </DataGrid.Columns>
                    </DataGrid>
                    <DataGrid  x:Name="dlgTechDetail"
                           ItemsSource="{Binding Source={StaticResource ResourceKey=vwTechDetail}}"  
                           AutoGenerateColumns="False" EnableRowVirtualization="True"
                           VerticalScrollBarVisibility="Auto"
                           HorizontalScrollBarVisibility="Auto"
                           HeadersVisibility="Column" 
                           FontSize="12"
                           MaxHeight="300"
                           EnableColumnVirtualization="True">
                        <DataGrid.Columns>
                            <DataGridTextColumn Binding="{Binding Path=FIsWarp}" Header="FIsWarp" Width="Auto" MinWidth="80" />
                            <DataGridTextColumn Binding="{Binding Path=FCharValue}" Header="FCharValue" Width="Auto" MinWidth="20" />
                            <DataGridTextColumn Binding="{Binding Path=FThreadCode}" Header="FThreadCode" Width="Auto" MinWidth="20" />
                            <DataGridTextColumn Binding="{Binding Path=FThreadName}" Header="FThreadName" Width="Auto" MinWidth="20" />
                            <DataGridTextColumn Binding="{Binding Path=FThreadValue}" Header="FThreadValue" Width="Auto" MinWidth="20" />
                        </DataGrid.Columns>
                    </DataGrid>
                </StackPanel>
            </Grid>
        </StackPanel>
    </StackPanel>
</local:DocumentBase>